From: Carlos Garnacho Date: Thu, 11 Feb 2021 23:53:21 +0000 (+0100) Subject: keyboard: Use translation-y property for focus window animations X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~616^2^2~298 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=8526776b4a53d9a801197fb66ce9a282323c1c4e;p=gnome-shell.git keyboard: Use translation-y property for focus window animations Just the intermediate state, we still need to synchronize visual and real window position after the animation. Part-of: --- diff --git a/js/ui/keyboard.js b/js/ui/keyboard.js index a5304edac..ae3cdd35c 100644 --- a/js/ui/keyboard.js +++ b/js/ui/keyboard.js @@ -1856,6 +1856,10 @@ var Keyboard = GObject.registerClass({ _windowSlideAnimationComplete(window, delta) { // Synchronize window positions again. + const windowActor = window.get_compositor_private(); + if (windowActor) + windowActor.translation_y = 0; + let frameRect = window.get_frame_rect(); frameRect.y += delta; window.move_frame(true, frameRect.x, frameRect.y); @@ -1869,7 +1873,7 @@ var Keyboard = GObject.registerClass({ if (show) { windowActor.ease({ - y: windowActor.y - deltaY, + translation_y: -deltaY, duration: KEYBOARD_ANIMATION_TIME, mode: Clutter.AnimationMode.EASE_OUT_QUAD, onComplete: () => { @@ -1878,7 +1882,7 @@ var Keyboard = GObject.registerClass({ }); } else { windowActor.ease({ - y: windowActor.y + deltaY, + translation_y: deltaY, duration: KEYBOARD_ANIMATION_TIME, mode: Clutter.AnimationMode.EASE_IN_QUAD, onComplete: () => {